/*
*定义一个list对象来存储deque对象，该deque对象存放int型元素
*/
#include <iostream>
#include <list>
#include <deque>
using namespace std;

int main()
{
	//定义deque容器并添加元素
	deque<int> ide;
	ide.push_back(10);
	ide.push_back(20);
	ide.push_back(30);
	ide.push_back(40);
	ide.push_back(50);

	//定义一个list对象来存储deque对象
	list<int> ilist(ide.begin(),ide.end());
	
	//遍历ilist容器
	cout << "ilist:  ";
	for(list<int>::iterator iter = ilist.begin();iter != ilist.end();iter++)
	{
		cout << *iter << "  ";
	}

	cout << endl;
	system("pause");
	return 0;
}